home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-11 | 334 b | 18 lines | [TEXT/ttxt] |
- ; computes a subtraction by constructing the two's complement and adding
-
- copy bottom=>R1 ;start with one value
- not r1
- add #1=>r1
- add top=>r1
- copy top=>r2
- subtract bottom,r2
- compare r1=>r2
- jump:equal correctend
-
- incorrectend halt
- correctend halt ;should end here
- bottom constant 3
- top constant 5
-
- end
-